package com.john.bms.model.system.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author:张家小帅哥
 * @Date:2020/5/31
 * @Version:1.0
 * @Description:TODO
 */
@Data
@TableName("sys_user_info")
@NoArgsConstructor
@AllArgsConstructor
public class SysUserInfo implements Serializable {

    @TableId(value = "info_id")
    private String infoId;

    @TableField("u_id")
    private String uId;

    private Integer gender;

    private String phone;

    private String email;

    /**
     * 地址
     */
    //private Integer address;

    @TableField("date_birth")
    private Date dateBirth;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date updateTime;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date createTime;

    private static final long serialVersionUID = 1L;
}
